<?php

namespace App\Business\BLL\Wechat;

use EasyWeChat\Factory;

class MiniProgram
{
    public static function make()
    {
        $config = [
            'app_id' => config('wechat.mini_program.default.app_id'),
            'secret' => config('wechat.mini_program.default.secret'),
            // 下面为可选项
            // 指定 API 调用返回结果的类型：array(default)/collection/object/raw/自定义类名
            'response_type' => config('wechat.defaults.response_type'),

            'log' => config('wechat.mini_program.log'),
        ];

        return Factory::miniProgram($config);

    }
}
